package com.shopping_back.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品类目表
 * </p>
 *
 * @author Jack
 * @since 2025-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("category")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 类目ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 父类目ID
     */
    private Long parentId;

    /**
     * 类目名称
     */
    private String name;

    /**
     * 类目层级(1-3级)
     */
    private Integer level;

    /**
     * 排序字段
     */
    private Integer sortOrder;

    /**
     * 是否可见
     */
    private Boolean isVisible;

    private LocalDateTime createTime;


}
